<template>
  <div class="zui-flex emptyWrap" :class="extEmptClass">
    <img src="@/assets/404.png" class="icon">
    <div class="des">对不起，页面没有找到</div>
    <div class="btns"><el-button type="primary" @click="goIndex">返回首页</el-button></div>
  </div>
</template>

<script>

export default {
  name: 'EmptyPlaceholder',
  props: {
    extEmptClass: {
      type: String,
      default: ''
    }
  },
  data() {
    return {
      
    }
  },
  mounted() {
    
  },
  beforeDestroy() {
    
  },
  methods: {
    goIndex () {
      this.$router.push('/');
    }
  }
}
</script>

<style scoped lang="scss">
.emptyWrap {
  background: #fff;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 600px;
  height: 400px;
  margin: 0 auto;
  margin-top: -230px;
  box-shadow: 3.5px 3.5px 8px rgb(102, 102, 102);
  position: fixed;
  left: 0;
  right: 0;
  top: 50%;
  border-radius: 3px;
  .icon {
    margin: 0 auto;
  }
  .des {
    font-size: 30px;
    margin: 30px;
  }
  .btns {
    .el-button {
      width: 200px;
      padding: 16px 20px;
    }
  }
}
</style>